import service from '@/utils/request'

//新增(更新)
export const addinsertApi = (projectType: any, dataForm: any) => {
	return service.post(`/systemManager/attachment/insert/${projectType}`, dataForm)
}
export const updateinsertApi = (projectType: any, dataForm: any) => {
	return service.post(`/systemManager/attachment/update/${projectType}`, dataForm)
}
// 列表
export const listApi = (projectType: any, dataForm: any) => {
	return service.get(`/systemManager/attachment/list/${projectType}`, { params: dataForm })
}
// 删除
export const deletetApi = (dataForm: any) => {
	return service.get('/systemManager/attachment/delete', { params: dataForm })
}
// 文件类型字典表
export const listFileTypeApi = () => {
	return service.get('/systemManager/attachment/listFileType')
}
// // 权限配置提交
// export const roleMenuSubmitApi = (dataForm: any) => {
// 	return service.post('/api/role/doSave', dataForm)
// }
// // 删除
// export const deletetApi = (dataForm: any) => {
// 	return service.getUri('/systemManager/attachment/delete', { params: dataForm })
// }

// 列表
export const listStageTypeApi = (projectType: any) => {
	return service.get(`systemManager/attachment/listStageType/${projectType}`)
}
